Skip to content

[SE-0508] Update source compatibility to note init accessor breakage#3352

Open
hamishknight wants to merge 1 commit into
swiftlang:mainfrom
hamishknight:update-se0508
Open

[SE-0508] Update source compatibility to note init accessor breakage#3352
hamishknight wants to merge 1 commit into
swiftlang:mainfrom
hamishknight:update-se0508

Conversation

@hamishknight

Copy link
Copy Markdown
Contributor

There is an additional source compatibility impact with init accessors (swiftlang/swift#90280), note it in the proposal text for posterity.

@hamishknight
hamishknight requested a review from hborla July 9, 2026 17:24

@hborla hborla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The LSG discussed this and we agree this is a niche enough case that the source break is acceptable.

One minor bit of editorial feedback: it's left to the reader to connect the dots that this only affects init accessors because you cannot write an initial value on a computed property that only has get/set accessors. To have an initial value on a computed property, you must have an init accessor. I think it's worth stating that explicitly in the section.

There is an additional source compatibility impact with `init`
accessors, note it in the proposal text for posterity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants